﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DA;
namespace BLL
{
    public class Order_Buy_BLL
    {
        public static Order_Buy_DAL cls = new Order_Buy_DAL();
        #region[Get-Data]
        public DataTable GetOrderBuy()
        {
            return cls.GetOrderBuy();
        }
        public DataTable GetOrderBuyEdit(int id)
        {
            return cls.GetOrderBuyEdit(id);
        }
        public DataTable GetOrderBuyOrderOfOrder(int id)
        {
            return cls.GetOrderBuyOrderOfOrder(id);
        }
        public DataTable GetOrderBuyDetail(int id)
        {
            return cls.GetOrderBuyDetail(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertOrderBy(ET.Order_Buy_ET obj)
        {
            return cls.InsertOrderBy(obj);
        }
        public static bool DeleteOrderBuy(int id)
        {
            return cls.DeleteOrderBuy(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable SearchOrder(string keywords)
        {
            return cls.SearchOrder(keywords);
        }
        #endregion
        
    }
}
